package top.italks.manufactureproject;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
//import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import butterknife.ButterKnife;
import butterknife.OnClick;
import top.italks.manufactureproject.ui.AirConditionActivity;
import top.italks.manufactureproject.ui.AmapActivity;
import top.italks.manufactureproject.ui.CompleteCarActivity;
import top.italks.manufactureproject.ui.EnvironmentActivity;
import top.italks.manufactureproject.ui.MaterialActivity;
import top.italks.manufactureproject.ui.post.PostActivity;
import top.italks.manufactureproject.ui.ProblemCarActivity;
import top.italks.manufactureproject.ui.SupplyActivity;
import top.italks.manufactureproject.ui.rencai.TalentMarketActivity;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.light
        , R.id.airCondition
        , R.id.telentMarket
        , R.id.postBtn
        , R.id.supply
        , R.id.material
        , R.id.problemCar
        , R.id.completeCar
        , R.id.amapBtn

    })
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.light:
                startActivity(new Intent(this, EnvironmentActivity.class));
                break;
            case R.id.airCondition:
                startActivity(new Intent(this, AirConditionActivity.class));
                break;
            case R.id.telentMarket:
                startActivity(new Intent(this, TalentMarketActivity.class));
                break;
            case R.id.postBtn:
                startActivity(new Intent(this, PostActivity.class));
                break;
            case R.id.supply:
                startActivity(new Intent(this, SupplyActivity.class));
                break;
            case R.id.material:
                startActivity(new Intent(this, MaterialActivity.class));
                break;
            case R.id.problemCar:
                startActivity(new Intent(this, ProblemCarActivity.class));
                break;
            case R.id.completeCar:
                startActivity(new Intent(this, CompleteCarActivity.class));
                break;
            case R.id.amapBtn:
                startActivity(new Intent(this, AmapActivity.class));
                break;
        }
    }


}
